package ru.jetsoft.reg112.desktop.data;

import java.util.Collection;
import ru.jetsoft.reg112.desktop.BaseException;

public class DataSupply {

    private int regionId;
    private final Collection<ParamData> dataTree;

    public DataSupply() throws BaseException {
        dataTree = DataSupplyManager.generateData();
    }

    public DataSupply(String filename) throws BaseException {
        dataTree = DataSupplyManager.load(filename);
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }

    public int getRegionId() {
        return regionId;
    }

    public Collection<ParamData> getDataTree() {
        return dataTree;
    }
}
